<td>
    <ul class="sf_admin_td_actions">
        <?php if ($sf_user->hasCredential(array(0 => 'administrativo',))): ?>
            <?php echo $helper->linkToEdit($beca, array('credentials' => array(0 => 'admin',), 'params' => array(), 'class_suffix' => 'edit', 'label' => 'Edit',)) ?>
        <?php endif; ?>

        <?php if ($sf_user->hasCredential(array(0 => 'administrativo',))): ?>
            <?php echo $helper->linkToDelete($beca, array('credentials' => array(0 => 'admin',), 'params' => array(), 'confirm' => 'Are you sure?', 'class_suffix' => 'delete', 'label' => 'Delete',)) ?>
        <?php endif; ?>

        <li class="sf_admin_action_show">
            <?php if ($sf_user->hasCredential(array(0 => array(0 => 'atPublico', 1 => 'administrativo', 2 => 'aspirante',),))): ?>
                <?php echo link_to(__('Ver', array(), 'messages'), 'beca/ListShow?id=' . $beca->getId(), array()) ?>
            <?php endif; ?>

        </li>
        <li class="sf_admin_action_otorgarbecas">
            <?php
            /* Agrego unas condiciones extras para poner el action sólo si corresponde */
            if ($beca->getGeneroInforme()
                    && $beca->getCantidadSolicitudesEnEvaluacion() 
                    && $sf_user->hasCredential(array(0 => 'administrativo',))):
                echo link_to(__('Otorgar Becas', array(), 'messages'), url_for('beca_otorgar', array('id' => $beca->getId())), array()
                );
            endif;
            ?>

        </li>
        <li class="sf_admin_action_generoInforme">
            <?php
            /* Agrego unas condiciones extras para poner el action sólo si corresponde */
            if (!$beca->enPeriodoDeInscripcion() && $beca->getCantidadSolicitudesEnEvaluacion() 
                    && 
                    $sf_user->hasCredential(array(0 => 'administrativo',))):
                echo link_to(__('Generar Informe', array(), 'messages'), url_for('beca/generarInforme?id='. $beca->getId()), array()
                );
            endif;
            ?>

        </li>
    </ul>
</td>
